package com.woniuxy.house.service.serviceimpl;

import com.woniuxy.house.entity.PictureChange;
import com.woniuxy.house.mapper.PictureChangeMapper;
import com.woniuxy.house.service.PictureChangeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PictureChangeServiceImp implements PictureChangeService {
    @Autowired
    private PictureChangeMapper pictureChangeMapper;

    @Override
    public List<PictureChange> getLimitSize(Integer size) {

        return pictureChangeMapper.getBySize(size);
    }

    @Override
    public void addPictureChange(PictureChange pictureChange) {
        pictureChangeMapper.add(pictureChange);
    }

    @Override
    public void deleteById(Integer id) {
        pictureChangeMapper.delete(id);
    }
}
